// dlg.txt

//	mark_quest_dest(zone,x,y,layer,quest);
//	cancel_out_fight(0,short kill_enc)
//	make_outdoor_enc(short x,short y,short which_enc);
//	set_out_fight_field(short which_field);

begintalkscript;

variables;

short this_sec = 59;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "The cave opens up as you get farther north. The ceiling is even taller. The mist and soot make it hard to see how high it goes.";
	text2 = "The rocky floor to the north is criss-crossed with more rivers of lava, making travel unpleasant and confusing. You aren't able to see well enough to navigate a path through the maze from here.";
	text3 = "There are lots of claw scratches and shedded scales in the scree at your feet. Some of the scales are distressingly large.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "A large, flat expanse of stone rises out of the lava ahead. This has been a meeting place for the denizens of the underworld for centuries. The ground is worn flat. Past duels and battles have left areas scorched and covered with scratches.";
	text2 = "There is currently a meeting in place. Not of people. Drakes. A large group of them. They sit in a circle, discussing something with low, passionate hisses.";
	text3 = "Of course, you are unable to approach unseen. As soon as you step out into the clearing, they turn and look at you. Happily, they don't attack. For now, they are content to watch you.";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "You find an old, abandoned nest. Originally built by lizards, it has been abandoned for some time. All valuables have been looted.";
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "You find a lizard nest, recently built. It is full of broken chunks of large, thick eggshells. A bunch of large lizards hatched here recently, warmed by the soothing heat from the lava nearby.";
	text2 = "You poke through the nest for a bit, looking for treasure. Under some bones, you find a scroll tube.";
	code =
		sf(100 + this_sec,4,1);
		reward_give(405);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "You stand, winded, in the middle of a pile of dead drakes. They threatened that they would avenge your attack. Oh well. Haven is a massive Empire. You can handle it.";
	text2 = "You poke through their pile of treasure. It's not majestic. More symbolic than anything. Still, it's a decent pile of coinage and jewelry. Under it, you also find a beautiful steel shield, studded with jewels.";
	code =
		change_coins(134,1);
		reward_give(115);
	break;
	
begintalknode;
	tag = 14;
	condition = 1;
	text1 = "Now that the drakes are no longer engaging in diplomacy, you see their full hunger and lust for treasure.";
	code =
	break;
begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "When you approach the drakes, they watch you with bemusement. They don't need to see the insignia on your shoulder to know who you are. They seem like they expected your arrival.";
	text2 = "One of them steps forward and lowers his head to see you better. _Ahhhssss. This is a conclave of drakes, [P] of Haven. We give your Empire respect, but this is private businessss. We ask your privacy._";
	text3 = "The drakes are somewhat irritated by your return. They're still peaceful, but much less cordial. _Ssssss. [P], this is private businessss. No insult, but we wish to conclude it alone._";
	text4 = "You note that whatever their private business is, it involves some trading. There is a pile of coins and other intriguing items in the middle of their circle.";
	code =
		if (gf(159,11) == 0) {
			sf(159,11,1);
			rs(3);
			}
			else {
				rs(1);
				rs(2);
				}
	break;
	
begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "_What are you discussing?_";
	text1 = "The drakes look at each other. They seem almost embarrassed. _It is a private matter, envoy of Haven. Drakes are not social as a rule, but sometimes we do need to come together and talk about matters important to our kind._";

begintalknode;
	state = 11;
	nextstate = 10;
	condition = 1;
	question = "_I speak for Haven. Perhaps I can be of use._";
	text1 = "_Ummmm, this conclave has been called to discussss Haven. The changesss there. The changesss coming. How they will affect our kind. We mean no insult and no treachery. However, you can't aid us in this matter._";

begintalknode;
	state = 11;
	nextstate = 10;
	condition = 1;
	question = "_Understood._";
	text1 = "_Then we hope you move on soon. We mean no insult and no treachery._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "_I'd like to learn about the underworld._";
	text1 = "_We are not the onesss to give such lessonsss. We think your kind hasss a little outpossst to the wessst._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "_Nice treasure._";
	text1 = "This makes the drakes uncomfortable, as if you caught a human naked. They shift around to block your view. _It is just trinketsss. Part of the ceremony of the conclave. Nothing of true value._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "_I'll leave you to your business._";
	text1 = "_Yesss. We are honored by your visit. We wish you a safe trip out of the underworld._ You leave, sort of surprised that the creature didn't decide to eat you.";
	action = END_TALK;
	code =
		cancel_out_fight(0,0);
	break;	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "_I am a hunter, and you are excellent prey!_ Attack.";
	text1 = "The drakes are startled. _You insult our kind such? You think this crime will go unnoticed? Pay for your arrogance, foolish young human!_";
	action = END_TALK;
	code =
		set_out_fight_field(11);
	break;
		
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				